#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
import socket
import time

server = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
server.bind(("127.0.0.1", 2002))

while True:
    data, addr = server.recvfrom(1024)
    server.sendto("{}".format(time.time()).encode("utf-8"), addr)
